/**
 * token 封装
 */
import { getCookie, setCookie, removeCookie } from './cookie';

const TokenKey = "Admin-Token";

//获取键名为Admin-Token的值
export const getToken = () => {
  return getCookie(TokenKey);
};

//设置键名Admin-Token，值为token
export const setToken = (token: string) => {
  setCookie(TokenKey, token);
};

//移除键名为Admin-Token的值
export const removeToken = () => {
  removeCookie(TokenKey);
};